home *** CD-ROM | disk | FTP | other *** search
/ FishMarket 1.0 / FishMarket v1.0.iso / fishies / 176-200 / disk_185 / examples / display / myreadpict.h < prev    next >
C/C++ Source or Header  |  1992-05-06  |  1KB  |  50 lines

  1. /* myreadpict.h
  2.  * Modified 12/88 - removed Camg, Ccrt, Crng defs (now in ilbm.h)
  3.  */
  4.  
  5. #ifndef MYREADPICT_H
  6. #define MYREADPICT_H
  7.  
  8.  
  9. #ifndef GRAPHICS_GFX_H
  10. #include <graphics/gfx.h>
  11. #endif
  12.  
  13. #ifndef ILBM_H
  14. #include <iff/ilbm.h>
  15. #endif
  16.  
  17.  
  18. #define EXDepth 6        /* Maximum depth (6=HAM) */
  19. #define maxColorReg 32
  20. #define maxCycles   8
  21. #define RNG_NORATE  36   /* Dpaint uses this rate to mean non-active */
  22.  
  23. typedef struct {
  24.    ClientFrame clientFrame;
  25.    UBYTE foundBMHD;
  26.    UBYTE nColorRegs;
  27.    BitMapHeader bmHdr;
  28.    Color4 colorMap[maxColorReg];
  29.    /* If you want to read any other property chunks, e.g. GRAB or CAMG, add
  30.     * fields to this record to store them. */
  31.    UBYTE foundCAMG;
  32.    CamgChunk camgChunk;
  33.    UBYTE cycleCnt;
  34.    CRange crngChunks[maxCycles]; /* I'll convert CCRT to this */
  35.    } ILBMFrame;
  36.  
  37. typedef UBYTE *UBytePtr;
  38.  
  39. #ifdef FDwAT
  40. extern IFFP myReadPicture(LONG, ILBMFrame *);
  41. extern struct BitMap *getBitMap(ILBMFrame *);
  42. #else 
  43. extern IFFP myReadPicture();
  44. extern struct BitMap *getBitMap();
  45. #endif
  46.  
  47. #endif MYREADPICT_H
  48.  
  49.  
  50.